<template>
  <div class="goods">
    <goods-list-item v-for="item in goods" :key="item.link" :goodsItem="item" :cols="cols" />
  </div>
</template>

<script>
  import GoodsListItem from './GoodsListItem'

export default {
  name:'GoodsList',
  props:{
    goods:{
      type:Array,
      default(){
        return []
      }
    },
    cols:{
      type:Number,
      default(){
        return 2
      }
    }
  },
  components:{
    GoodsListItem
  }
}
</script>

<style scoped>
.goods{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
  
</style>